<%-- 
    Document   : quanLiNguoiDungView
    Created on : Oct 26, 2011, 4:19:07 PM
    Author     : nhlvu07db373
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <div class="danhsachsanpham">
        <div class="sprows">
            <div class="sprowhd">
                <div class="clrowstt"><span>STT</span></div>
                <div class="clrowtsp"><span>Họ Tên</span></div>
                <div class="clrowlsp"><span>Email</span></div>
                <div class="clrowgg"><span>Ngày Sinh</span></div>
                <div class="clrowgg"><span>Tình Trạng</span></div>
                <div class="clrowcn"><span>Chức Năng</span></div>
            </div>
        </div>
        <c:forEach items="${lstND}" var="nDung" varStatus="i">
            <div class="sprows">
                <div class="sprow">
                    <div class="clrowstt">${i.count}</div>
                    <div class="clrowtsp">${nDung.hoVaTen}</div>
                    <div class="clrowtsp">${nDung.email}</div>
                    <div class="clrowtsp">${nDung.ngaySinh}</div>
                    <div class="clrowlsp"><select name="${nDung.tinhTrang}">                            
                            <c:forEach items="${lstTTND}" var="lsp">
                                <option value="${lsp.maTinhTrang}" <c:if test="${lsp.maTinhTrang == nDung.tinhTrang }">selected</c:if> >${lsp.tenTinhTrang}</option>
                            </c:forEach>
                        </select></div>
                    <div class="clrowcn">
                        <c:choose>
                            <c:when test="${nDung.tinhTrang==1}">
                                <div class="cnbutton"><a href="xoanick.html?MaND=${nDung.maNguoiDung}">Xóa</a></div>
                                <div class="cnbutton"><a href="khoiphucnick.html?MaND=${nDung.maNguoiDung}">Reset</a></div>
                            </c:when>
                            <c:when test="${nDung.tinhTrang==2}">
                                <div class="cnbutton"><a href="bannick.html?MaND=${nDung.maNguoiDung}">Bannick</a></div>
                                <div class="cnbutton"><a href="xoanick.html?MaND=${nDung.maNguoiDung}">Xóa</a></div>
                            </c:when>
                            <c:when test="${nDung.tinhTrang==3}">
                                <div class="cnbutton"><a href="khoiphucnick.html?MaND=${nDung.maNguoiDung}">Reset</a></div>
                            </c:when>
                        </c:choose>                    
                    </div>
                </div
            </div>
        </c:forEach>
</html>
